feat(experimental): build shared GPU hash indexes from preserved batches - #2960
Merged
Conversation
This was referenced Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goals
Build one reusable GPU hash index from streamed, independently owned record batches so hash joins can support multi-batch right-hand tables without implicit concatenation, repacking, CPU readback, or command submission.
Changes
GPUBatchHashIndex, typed properties, and batch-aware storage statistics over orderedGraphVectorView<'uint32'>key chunks.GPUHashIndexbuild passes without changing its API or existing graph node identifiers.[2,0,3]topology, mismatched chunks, discontinuous source offsets, sliced physical offsets, nullable rows, reserved keys, duplicates, capacity overflow, empty inputs, aliases, and repeated encoding.Verification
nvm use: Node v22.22.1.yarn install: not rerun; reused the already verified dependency tree because the existing enterprise alpha registry dependency returns HTTP 403.yarn lint fix: passed after final changes.yarn build: passed after final formatting.yarn test: Node 550 passed/1 skipped; real Chromium/WebGPU 1,557 passed/25 skipped.yarn test-node: 550 passed/1 skipped.yarn website:buildand(cd website && yarn build): both passed and validated 461 documentation pages.yarn examples:typecheck: all 46 workspaces passed.yarn bundle-size: all seven budgets passed.Risks
0xffffffffremains unsupported and is explicitly counted; null rows do not increment invalid-key diagnostics.GPUHashIndexbehavior and public graph node IDs are preserved.